<template>
    <a-modal v-model="visible"
             :title="title"
             @ok="handleOk"
             @cancel="cancel"
             centered
             width="40em"
             :cancelText="cancelText"
             :okText="okText">
        <span class="text">
            确定删除所选中学院么？
        </span>
    </a-modal>
</template>

<script>
    export default {
        name: "BatchDeleteModel",
        data(){
            return {
                visible:false,
                title:'批量删除',
                cancelText:'取消',
                okText:'确认',
            }
        },
        methods:{
            showModel(){
                this.visible=true;
            },
            handleOk(){
                this.visible=false;
                this.$emit("del");
            },
            cancel(){
                this.visible=false;
            }
        }
    }
</script>

<style scoped>
    .text{
        display: block;
        margin: 0 auto;
        width: 100%;
        height: 100%;
        text-align: center;
    }
</style>
